<!DOCTYPE html>
<html lang="en">
    <head>
        <meta http-equiv="content-type" content="text/html; charset=UTF-8"> 
        <meta charset="utf-8">
        <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
        <link href="../css/bootstrap.min.css" rel="stylesheet">
        <link rel="shortcut icon" href="/bootstrap/img/favicon.ico">
        
        <title>AC MILAN </title>
        
        <style type="text/css">
            .container {
            margin: 0 auto;
            max-width: 960px;
          }
          
        </style>
        </head>
            <?php require_once('../modulos/header.php'); ?> 
        
            <body  style="background-image: url(../img/rayas_verticales.jpg); background-size: 100%;">
               
                <?php require_once('../modulos/navbar.php'); ?>
                
                <div class='row'>
                    <br><br><br>
                <div class="col-md-7 text-center col-lg-offset-3" style="background: #e7e7e7; border-radius: 15px;">
                        <div>
                        <?php
                            require_once '../conex.php';
                        
                            $datos = $_POST['idOpo'];
                            $array = explode("/", $datos);
                            
                            $part = $array[0];
                            
                            ?>
                         <a href="../vistas/mod_alineacion.php">
                            <div class="col-md-1 text-left" style="height: 50px; padding-top: 10px">
                                <strong>Volver</strong>
                            </div>
                        </a>    
                        <br>    
                        <p class="lead">
                            <strong>Competencia:</strong> <?php echo $array[1]; ?>
                        </p>
                        <p class="lead">
                           <strong>Oponente:</strong> <?php echo $array[2]; ?>
                        </p>
                        <p class="lead">
                           <strong>Fecha:</strong> <?php echo $array[3]; ?>
                        </p>
                        <hr style="border: rgba(86,61,124,.15) solid 2px;">
                        <p class="left"><strong>Titulares</strong></p>
                        <hr style="border: rgba(86,61,124,.15) solid 2px;">
                        </div>
                        <form method="POST" action="../editar/alineacion.php">
                            <div>
                                <table class="table table-striped">
                                    <thead>
                                        <tr>
                                            <th>
                                                Jugador 
                                                <input name="idPartido" value="<?php echo $array[0]; ?>" class="form-control" style="display: none;">
                                            </th>
                                            <th>Rol </th>
                                            <th>Nro. Camiseta </th>
                                        </tr>
                                    </thead>
                                    <tbody style="background-color: #f9f9f9;">
                                        <tr>   
                                            <th>
                                            <?php 
                                            require_once '../conex.php'; 
                                            $qr = "SELECT * FROM jugadores";
                                            $ejecutar = mysql_query($qr);
                                            
                                            $al = "SELECT * FROM alineaciones WHERE alineaciones.idPartido = $array[0]";
                                            $ejecutala = mysql_query($al);
                                            
                                            $k = 1;
                                            
                                            while ($ali = mysql_fetch_array($ejecutala)){ 
                                                $dat[] = 0;
                                                $rol_jug[] = '';
                                                $shirt[] = 0;
                                                
                                                $dat[$k] = $ali['idJugador'];
                                                $rol_jug[$k] = $ali['rol'];
                                                $shirt[$k] = $ali['nro_jugador'];
                                                
                                                $k++;
                                            }
                                            ?>
                                            <select class="form-control" name="jugador1" required>
                                                <?php 
                                                while ($fila = mysql_fetch_array($ejecutar)){ ?>
                                                <option <?php if ($fila['idJugadores'] == $dat[1]) echo 'selected'; ?> id="<?php echo $fila['idJugadores']; ?>" value="<?php echo $fila['idJugadores']?>">
                                                    <?php echo $fila['nombre'].' '.$fila['apellido']; 
                                                    }   
                                                    ?>
                                                </option>
                                            </select>  
                                            </th>
                                            <th>
                                                <select class="form-control" name="rol1" required>
                                                    <option <?php if (strcmp($rol_jug[1],"delantero")==0) echo 'selected'; ?> id="1" value="delantero">Delantero</option>
                                                    <option <?php if (strcmp($rol_jug[1],"mediocampista")==0) echo 'selected'; ?> id="2" value="mediocampista">Mediocampista</option>
                                                    <option <?php if (strcmp($rol_jug[1],"defensa")==0) echo 'selected'; ?> id="3" value="defensa">Defensa</option>
                                                    <option <?php if (strcmp($rol_jug[1],"portero")==0) echo 'selected'; ?> id="4" value="portero">Portero</option>
                                                </select>    
                                            </th>
                                            <th>
                                                <input name="nro_camisa1" type="tel" value="<?php echo $shirt[1]; ?>" class="form-control" required>
                                                <input name="tit1" value="titular" class="form-control" style="display: none;">
                                            </th>
                                        </tr>
                                        <tr>   
                                            <th>
                                            <?php  
                                            $qr2 = "SELECT * FROM jugadores";
                                            $ejecutar2 = mysql_query($qr2);
                                            ?>
                                            <select class="form-control" name="jugador2" required>
                                                <?php 
                                                while ($fila = mysql_fetch_array($ejecutar2)){ ?>
                                                <option <?php if ($fila['idJugadores'] == $dat[2]) echo 'selected'; ?> id="<?php echo $fila['idJugadores']; ?>" value="<?php echo $fila['idJugadores']?>">
                                                    <?php echo $fila['nombre'].' '.$fila['apellido']; 
                                                    }   
                                                    ?>
                                                </option>
                                            </select>  
                                            </th>
                                            <th>
                                                <select class="form-control" name="rol2" required>
                                                    <option <?php if (strcmp($rol_jug[2],"delantero")==0) echo 'selected'; ?> id="1" value="delantero">Delantero</option>
                                                    <option <?php if (strcmp($rol_jug[2],"mediocampista")==0) echo 'selected'; ?> id="2" value="mediocampista">Mediocampista</option>
                                                    <option <?php if (strcmp($rol_jug[2],"defensa")==0) echo 'selected'; ?> id="3" value="defensa">Defensa</option>
                                                    <option <?php if (strcmp($rol_jug[2],"portero")==0) echo 'selected'; ?> id="4" value="portero">Portero</option>
                                                </select>    
                                            </th>
                                            <th>
                                                <input name="nro_camisa2" type="tel" value="<?php echo $shirt[2]; ?>" class="form-control" required>
                                                <input name="tit2" value="titular" class="form-control" style="display: none;">
                                            </th>
                                        </tr>
                                        <tr>   
                                            <th>
                                            <?php 
                                            $qr3 = "SELECT * FROM jugadores";
                                            $ejecutar3 = mysql_query($qr3);
                                            ?>
                                            <select class="form-control" name="jugador3" required>
                                                <?php 
                                                while ($fila = mysql_fetch_array($ejecutar3)){ ?>
                                                <option <?php if ($fila['idJugadores'] == $dat[3]) echo 'selected'; ?> id="<?php echo $fila['idJugadores']; ?>" value="<?php echo $fila['idJugadores']?>">
                                                    <?php echo $fila['nombre'].' '.$fila['apellido']; 
                                                    }   
                                                    ?>
                                                </option>
                                            </select>  
                                            </th>
                                            <th>
                                                <select class="form-control" name="rol3" required>
                                                    <option <?php if (strcmp($rol_jug[3],"delantero")==0) echo 'selected'; ?> id="1" value="delantero">Delantero</option>
                                                    <option <?php if (strcmp($rol_jug[3],"mediocampista")==0) echo 'selected'; ?> id="2" value="mediocampista">Mediocampista</option>
                                                    <option <?php if (strcmp($rol_jug[3],"defensa")==0) echo 'selected'; ?> id="3" value="defensa">Defensa</option>
                                                    <option <?php if (strcmp($rol_jug[3],"portero")==0) echo 'selected'; ?> id="4" value="portero">Portero</option>
                                                </select>    
                                            </th>
                                            <th>
                                                <input name="nro_camisa3" type="tel" value="<?php echo $shirt[3]; ?>" class="form-control" required>
                                                <input name="tit3" value="titular" class="form-control" style="display: none;">
                                            </th>
                                        </tr>
                                        <tr>   
                                            <th>
                                            <?php  
                                            $qr4 = "SELECT * FROM jugadores";
                                            $ejecutar4 = mysql_query($qr4);
                                            ?>
                                            <select class="form-control" name="jugador4" required>
                                                <?php 
                                                while ($fila = mysql_fetch_array($ejecutar4)){ ?>
                                                <option <?php if ($fila['idJugadores'] == $dat[4]) echo 'selected'; ?> id="<?php echo $fila['idJugadores']; ?>" value="<?php echo $fila['idJugadores']?>">
                                                    <?php echo $fila['nombre'].' '.$fila['apellido']; 
                                                    }   
                                                    ?>
                                                </option>
                                            </select>  
                                            </th>
                                            <th>
                                                <select class="form-control" name="rol4" required>
                                                    <option <?php if (strcmp($rol_jug[4],"delantero")==0) echo 'selected'; ?> id="1" value="delantero">Delantero</option>
                                                    <option <?php if (strcmp($rol_jug[4],"mediocampista")==0) echo 'selected'; ?> id="2" value="mediocampista">Mediocampista</option>
                                                    <option <?php if (strcmp($rol_jug[4],"defensa")==0) echo 'selected'; ?> id="3" value="defensa">Defensa</option>
                                                    <option <?php if (strcmp($rol_jug[4],"portero")==0) echo 'selected'; ?> id="4" value="portero">Portero</option>
                                                </select>    
                                            </th>
                                            <th>
                                                <input name="tit4" value="titular" class="form-control" style="display: none;">
                                                <input name="nro_camisa4" type="tel" value="<?php echo $shirt[4]; ?>" class="form-control" required>
                                            </th>
                                        </tr>
                                        <tr>   
                                            <th>
                                            <?php 
                                            $qr5 = "SELECT * FROM jugadores";
                                            $ejecutar5 = mysql_query($qr5);
                                            ?>
                                            <select class="form-control" name="jugador5" required>
                                                <?php 
                                                while ($fila = mysql_fetch_array($ejecutar5)){ ?>
                                                <option <?php if ($fila['idJugadores'] == $dat[5]) echo 'selected'; ?> id="<?php echo $fila['idJugadores']; ?>" value="<?php echo $fila['idJugadores']?>">
                                                    <?php echo $fila['nombre'].' '.$fila['apellido']; 
                                                    }   
                                                    ?>
                                                </option>
                                            </select>  
                                            </th>
                                            <th>
                                                <select class="form-control" name="rol5" required>
                                                    <option <?php if (strcmp($rol_jug[5],"delantero")==0) echo 'selected'; ?> id="1" value="delantero">Delantero</option>
                                                    <option <?php if (strcmp($rol_jug[5],"mediocampista")==0) echo 'selected'; ?> id="2" value="mediocampista">Mediocampista</option>
                                                    <option <?php if (strcmp($rol_jug[5],"defensa")==0) echo 'selected'; ?> id="3" value="defensa">Defensa</option>
                                                    <option <?php if (strcmp($rol_jug[5],"portero")==0) echo 'selected'; ?> id="4" value="portero">Portero</option>
                                                </select>    
                                            </th>
                                            <th>
                                                <input name="tit5" value="titular" class="form-control" style="display: none;">
                                                <input name="nro_camisa5" type="tel" value="<?php echo $shirt[5]; ?>" class="form-control" required>
                                            </th>
                                        </tr>
                                        <tr>   
                                            <th>
                                            <?php 
                                            $qr6 = "SELECT * FROM jugadores";
                                            $ejecutar6 = mysql_query($qr6);
                                            ?>
                                            <select class="form-control" name="jugador6" required>
                                                <?php 
                                                while ($fila = mysql_fetch_array($ejecutar6)){ ?>
                                                <option <?php if ($fila['idJugadores'] == $dat[6]) echo 'selected'; ?> id="<?php echo $fila['idJugadores']; ?>" value="<?php echo $fila['idJugadores']?>">
                                                    <?php echo $fila['nombre'].' '.$fila['apellido']; 
                                                    }
                                                    ?>
                                                </option>
                                            </select>  
                                            </th>
                                            <th>
                                                <select class="form-control" name="rol6" required>
                                                    <option <?php if (strcmp($rol_jug[6],"delantero")==0) echo 'selected'; ?> id="1" value="delantero">Delantero</option>
                                                    <option <?php if (strcmp($rol_jug[6],"mediocampista")==0) echo 'selected'; ?> id="2" value="mediocampista">Mediocampista</option>
                                                    <option <?php if (strcmp($rol_jug[6],"defensa")==0) echo 'selected'; ?> id="3" value="defensa">Defensa</option>
                                                    <option <?php if (strcmp($rol_jug[6],"portero")==0) echo 'selected'; ?> id="4" value="portero">Portero</option>
                                                </select>    
                                            </th>
                                            <th>
                                                <input name="tit6" value="titular" class="form-control" style="display: none;">
                                                <input name="nro_camisa6" type="tel" value="<?php echo $shirt[6]; ?>" class="form-control" required>
                                            </th>
                                        </tr>
                                        <tr>   
                                            <th>
                                            <?php 
                                            $qr7 = "SELECT * FROM jugadores";
                                            $ejecutar7 = mysql_query($qr7);
                                            ?>
                                            <select class="form-control" name="jugador7" required>
                                                <?php 
                                                while ($fila = mysql_fetch_array($ejecutar7)){ ?>
                                                <option <?php if ($fila['idJugadores'] == $dat[7]) echo 'selected'; ?> id="<?php echo $fila['idJugadores']; ?>" value="<?php echo $fila['idJugadores']?>">
                                                    <?php echo $fila['nombre'].' '.$fila['apellido']; 
                                                    }   
                                                    ?>
                                                </option>
                                            </select>  
                                            </th>
                                            <th>
                                                <select class="form-control" name="rol7" required>
                                                    <option <?php if (strcmp($rol_jug[7],"delantero")==0) echo 'selected'; ?> id="1" value="delantero">Delantero</option>
                                                    <option <?php if (strcmp($rol_jug[7],"mediocampista")==0) echo 'selected'; ?> id="2" value="mediocampista">Mediocampista</option>
                                                    <option <?php if (strcmp($rol_jug[7],"defensa")==0) echo 'selected'; ?> id="3" value="defensa">Defensa</option>
                                                    <option <?php if (strcmp($rol_jug[7],"portero")==0) echo 'selected'; ?> id="4" value="portero">Portero</option>
                                                </select>    
                                            </th>
                                            <th>
                                                <input name="tit7" value="titular" class="form-control" style="display: none;">
                                                <input name="nro_camisa7" type="tel" value="<?php echo $shirt[7]; ?>" class="form-control" required>
                                            </th>
                                        </tr>
                                        <tr>   
                                            <th>
                                            <?php  
                                            $qr8 = "SELECT * FROM jugadores";
                                            $ejecutar8 = mysql_query($qr8);
                                            ?>
                                            <select class="form-control" name="jugador8" required>
                                                <?php 
                                                while ($fila = mysql_fetch_array($ejecutar8)){ ?>
                                                <option <?php if ($fila['idJugadores'] == $dat[8]) echo 'selected'; ?> id="<?php echo $fila['idJugadores']; ?>" value="<?php echo $fila['idJugadores']?>">
                                                    <?php echo $fila['nombre'].' '.$fila['apellido']; 
                                                    }   
                                                    ?>
                                                </option>
                                            </select>  
                                            </th>
                                            <th>
                                                <select class="form-control" name="rol8" required>
                                                    <option <?php if (strcmp($rol_jug[8],"delantero")==0) echo 'selected'; ?> id="1" value="delantero">Delantero</option>
                                                    <option <?php if (strcmp($rol_jug[8],"mediocampista")==0) echo 'selected'; ?> id="2" value="mediocampista">Mediocampista</option>
                                                    <option <?php if (strcmp($rol_jug[8],"defensa")==0) echo 'selected'; ?> id="3" value="defensa">Defensa</option>
                                                    <option <?php if (strcmp($rol_jug[8],"portero")==0) echo 'selected'; ?> id="4" value="portero">Portero</option>
                                                </select>    
                                            </th>
                                            <th>
                                                <input name="tit8" value="titular" class="form-control" style="display: none;">
                                                <input name="nro_camisa8" type="tel" value="<?php echo $shirt[8]; ?>" class="form-control" required>
                                            </th>
                                        </tr>
                                        <tr>   
                                            <th>
                                            <?php 
                                            $qr9 = "SELECT * FROM jugadores";
                                            $ejecutar9 = mysql_query($qr9);
                                            ?>
                                            <select class="form-control" name="jugador9" required>
                                                <?php 
                                                while ($fila = mysql_fetch_array($ejecutar9)){ ?>
                                                <option <?php if ($fila['idJugadores'] == $dat[9]) echo 'selected'; ?> id="<?php echo $fila['idJugadores']; ?>" value="<?php echo $fila['idJugadores']?>">
                                                    <?php echo $fila['nombre'].' '.$fila['apellido']; 
                                                    }   
                                                    ?>
                                                </option>
                                            </select>  
                                            </th>
                                            <th>
                                                <select class="form-control" name="rol9" required>
                                                    <option <?php if (strcmp($rol_jug[9],"delantero")==0) echo 'selected'; ?> id="1" value="delantero">Delantero</option>
                                                    <option <?php if (strcmp($rol_jug[9],"mediocampista")==0) echo 'selected'; ?> id="2" value="mediocampista">Mediocampista</option>
                                                    <option <?php if (strcmp($rol_jug[9],"defensa")==0) echo 'selected'; ?> id="3" value="defensa">Defensa</option>
                                                    <option <?php if (strcmp($rol_jug[9],"portero")==0) echo 'selected'; ?> id="4" value="portero">Portero</option>
                                                </select>    
                                            </th>
                                            <th>
                                                <input name="tit9" value="titular" class="form-control" style="display: none;">
                                                <input name="nro_camisa9" type="tel" value="<?php echo $shirt[9]; ?>" class="form-control" required>
                                            </th>
                                        </tr>
                                        <tr>   
                                            <th>
                                            <?php 
                                            $qr10 = "SELECT * FROM jugadores";
                                            $ejecutar10 = mysql_query($qr10);
                                            ?>
                                            <select class="form-control" name="jugador10" required>
                                                <?php 
                                                while ($fila = mysql_fetch_array($ejecutar10)){ ?>
                                                <option <?php if ($fila['idJugadores'] == $dat[10]) echo 'selected'; ?> id="<?php echo $fila['idJugadores']; ?>" value="<?php echo $fila['idJugadores']?>">
                                                    <?php echo $fila['nombre'].' '.$fila['apellido']; 
                                                    }   
                                                    ?>
                                                </option>
                                            </select>  
                                            </th>
                                            <th>
                                                <select class="form-control" name="rol10" required>
                                                    <option <?php if (strcmp($rol_jug[10],"delantero")==0) echo 'selected'; ?> id="1" value="delantero">Delantero</option>
                                                    <option <?php if (strcmp($rol_jug[10],"mediocampista")==0) echo 'selected'; ?> id="2" value="mediocampista">Mediocampista</option>
                                                    <option <?php if (strcmp($rol_jug[10],"defensa")==0) echo 'selected'; ?> id="3" value="defensa">Defensa</option>
                                                    <option <?php if (strcmp($rol_jug[10],"portero")==0) echo 'selected'; ?> id="4" value="portero">Portero</option>
                                                </select>    
                                            </th>
                                            <th>
                                                <input name="tit10" value="titular" class="form-control" style="display: none;">
                                                <input name="nro_camisa10" type="tel" value="<?php echo $shirt[10]; ?>" class="form-control" required>
                                            </th>
                                        </tr>
                                        <tr>   
                                            <th>
                                            <?php 
                                            $qr11 = "SELECT * FROM jugadores";
                                            $ejecutar11 = mysql_query($qr11);
                                            ?>
                                            <select class="form-control" name="jugador11" required>
                                                <?php 
                                                while ($fila = mysql_fetch_array($ejecutar11)){ ?>
                                                <option <?php if ($fila['idJugadores'] == $dat[11]) echo 'selected'; ?> id="<?php echo $fila['idJugadores']; ?>" value="<?php echo $fila['idJugadores']?>">
                                                    <?php echo $fila['nombre'].' '.$fila['apellido']; 
                                                    }   
                                                    ?>
                                                </option>
                                            </select>  
                                            </th>
                                            <th>
                                                <select class="form-control" name="rol11" required>
                                                    <option <?php if (strcmp($rol_jug[11],"delantero")==0) echo 'selected'; ?> id="1" value="delantero">Delantero</option>
                                                    <option <?php if (strcmp($rol_jug[11],"mediocampista")==0) echo 'selected'; ?> id="2" value="mediocampista">Mediocampista</option>
                                                    <option <?php if (strcmp($rol_jug[11],"defensa")==0) echo 'selected'; ?> id="3" value="defensa">Defensa</option>
                                                    <option <?php if (strcmp($rol_jug[11],"portero")==0) echo 'selected'; ?> id="4" value="portero">Portero</option>
                                                </select>    
                                            </th>
                                            <th>
                                                <input name="tit11" value="titular" class="form-control" style="display: none;">
                                                <input name="nro_camisa11" type="tel" value="<?php echo $shirt[11]; ?>" class="form-control" required>
                                            </th>
                                        </tr>
                                    </tbody>
                                </table>
                        <hr style="border: rgba(86,61,124,.15) solid 2px;">
                        <p class="left"><strong>Suplentes</strong></p>
                        <hr style="border: rgba(86,61,124,.15) solid 2px;">
                                <table class="table table-striped">
                                    <thead>
                                        <tr>
                                            <th>Jugador </th>
                                            <th>Rol </th>
                                            <th>Nro. Camiseta </th>
                                        </tr>
                                    </thead>
                                    <tbody style="background-color: #f9f9f9;">
                                        <tr> 
                                            <th>
                                            <?php
                                            $qr12 = "SELECT * FROM jugadores";
                                            $ejecutar12 = mysql_query($qr12);
                                            ?>
                                            <select class="form-control" name="jugador12" required>
                                                <?php 
                                                while ($fila = mysql_fetch_array($ejecutar12)){ ?>
                                                <option <?php if ($fila['idJugadores'] == $dat[12]) echo 'selected'; ?> id="<?php echo $fila['idJugadores']; ?>" value="<?php echo $fila['idJugadores']?>">
                                                    <?php echo $fila['nombre'].' '.$fila['apellido']; 
                                                    }   
                                                    ?>
                                                </option>
                                            </select>  
                                            </th>
                                            <th>
                                                <select class="form-control" name="rol12" required>
                                                    <option <?php if (strcmp($rol_jug[12],"delantero")==0) echo 'selected'; ?> id="1" value="delantero">Delantero</option>
                                                    <option <?php if (strcmp($rol_jug[12],"mediocampista")==0) echo 'selected'; ?> id="2" value="mediocampista">Mediocampista</option>
                                                    <option <?php if (strcmp($rol_jug[12],"defensa")==0) echo 'selected'; ?> id="3" value="defensa">Defensa</option>
                                                    <option <?php if (strcmp($rol_jug[12],"portero")==0) echo 'selected'; ?> id="4" value="portero">Portero</option>
                                                </select>    
                                            </th>
                                            <th>
                                                <input name="tit12" value="suplente" class="form-control" style="display: none;">
                                                <input name="nro_camisa12" type="tel" value="<?php echo $shirt[12]; ?>" class="form-control" required>
                                            </th>
                                        </tr>
                                        <tr> 
                                            <th>
                                            <?php
                                            $qr13 = "SELECT * FROM jugadores";
                                            $ejecutar13 = mysql_query($qr13);
                                            ?>
                                            <select class="form-control" name="jugador13" required>
                                                <?php 
                                                while ($fila = mysql_fetch_array($ejecutar13)){ ?>
                                                <option <?php if ($fila['idJugadores'] == $dat[13]) echo 'selected'; ?> id="<?php echo $fila['idJugadores']; ?>" value="<?php echo $fila['idJugadores']?>">
                                                    <?php echo $fila['nombre'].' '.$fila['apellido']; 
                                                    }   
                                                    ?>
                                                </option>
                                            </select>  
                                            </th>
                                            <th>
                                                <select class="form-control" name="rol13" required>
                                                    <option <?php if (strcmp($rol_jug[13],"delantero")==0) echo 'selected'; ?> id="1" value="delantero">Delantero</option>
                                                    <option <?php if (strcmp($rol_jug[13],"mediocampista")==0) echo 'selected'; ?> id="2" value="mediocampista">Mediocampista</option>
                                                    <option <?php if (strcmp($rol_jug[13],"defensa")==0) echo 'selected'; ?> id="3" value="defensa">Defensa</option>
                                                    <option <?php if (strcmp($rol_jug[13],"portero")==0) echo 'selected'; ?> id="4" value="portero">Portero</option>
                                                </select>    
                                            </th>
                                            <th>
                                                <input name="tit13" value="suplente" class="form-control" style="display: none;">
                                                <input name="nro_camisa13" type="tel" value="<?php echo $shirt[13]; ?>" class="form-control" required>
                                            </th>
                                        </tr>
                                        <tr> 
                                            <th>
                                            <?php
                                            $qr14 = "SELECT * FROM jugadores";
                                            $ejecutar14 = mysql_query($qr14);
                                            ?>
                                            <select class="form-control" name="jugador14" required>
                                                <?php 
                                                while ($fila = mysql_fetch_array($ejecutar14)){ ?>
                                                <option <?php if ($fila['idJugadores'] == $dat[14]) echo 'selected'; ?> id="<?php echo $fila['idJugadores']; ?>" value="<?php echo $fila['idJugadores']?>">
                                                    <?php echo $fila['nombre'].' '.$fila['apellido']; 
                                                    }   
                                                    ?>
                                                </option>
                                            </select>  
                                            </th>
                                            <th>
                                                <select class="form-control" name="rol14" required>
                                                    <option <?php if (strcmp($rol_jug[14],"delantero")==0) echo 'selected'; ?> id="1" value="delantero">Delantero</option>
                                                    <option <?php if (strcmp($rol_jug[14],"mediocampista")==0) echo 'selected'; ?> id="2" value="mediocampista">Mediocampista</option>
                                                    <option <?php if (strcmp($rol_jug[14],"defensa")==0) echo 'selected'; ?> id="3" value="defensa">Defensa</option>
                                                    <option <?php if (strcmp($rol_jug[14],"portero")==0) echo 'selected'; ?> id="4" value="portero">Portero</option>
                                                </select>    
                                            </th>
                                            <th>
                                                <input name="tit14" value="suplente" class="form-control" style="display: none;">
                                                <input name="nro_camisa14" type="tel" value="<?php echo $shirt[14]; ?>" class="form-control" required>
                                            </th>
                                        </tr>
                                        <tr> 
                                            <th>
                                            <?php
                                            $qr15 = "SELECT * FROM jugadores";
                                            $ejecutar15 = mysql_query($qr15);
                                            ?>
                                            <select class="form-control" name="jugador15" required>
                                                <?php 
                                                while ($fila = mysql_fetch_array($ejecutar15)){ ?>
                                                <option <?php if ($fila['idJugadores'] == $dat[15]) echo 'selected'; ?> id="<?php echo $fila['idJugadores']; ?>" value="<?php echo $fila['idJugadores']?>">
                                                    <?php echo $fila['nombre'].' '.$fila['apellido']; 
                                                    }   
                                                    ?>
                                                </option>
                                            </select>  
                                            </th>
                                            <th>
                                                <select class="form-control" name="rol15" required>
                                                    <option <?php if (strcmp($rol_jug[15],"delantero")==0) echo 'selected'; ?> id="1" value="delantero">Delantero</option>
                                                    <option <?php if (strcmp($rol_jug[15],"mediocampista")==0) echo 'selected'; ?> id="2" value="mediocampista">Mediocampista</option>
                                                    <option <?php if (strcmp($rol_jug[15],"defensa")==0) echo 'selected'; ?> id="3" value="defensa">Defensa</option>
                                                    <option <?php if (strcmp($rol_jug[15],"portero")==0) echo 'selected'; ?> id="4" value="portero">Portero</option>
                                                </select>    
                                            </th>
                                            <th>
                                                <input name="tit15" value="suplente" class="form-control" style="display: none;">
                                                <input name="nro_camisa15" type="tel" value="<?php echo $shirt[15]; ?>" class="form-control" required>
                                            </th>
                                        </tr>
                                        <tr> 
                                            <th>
                                            <?php
                                            $qr16 = "SELECT * FROM jugadores";
                                            $ejecutar16 = mysql_query($qr16);
                                            
                                            ?>
                                            <select class="form-control" name="jugador16" required>
                                                <?php 
                                                while ($fila = mysql_fetch_array($ejecutar16)){ ?>
                                                <option <?php if ($fila['idJugadores'] == $dat[16]) echo 'selected'; ?> id="<?php echo $fila['idJugadores']; ?>" value="<?php echo $fila['idJugadores']?>">
                                                    <?php  echo $fila['nombre'].' '.$fila['apellido']; 
                                                    }   
                                                    mysql_close();
                                                    ?>
                                                </option>
                                            </select>  
                                            </th>
                                            <th>
                                                <select class="form-control" name="rol16" required>
                                                    <option <?php if (strcmp($rol_jug[16],"delantero")==0) echo 'selected'; ?> id="1" value="delantero">Delantero</option>
                                                    <option <?php if (strcmp($rol_jug[16],"mediocampista")==0) echo 'selected'; ?> id="2" value="mediocampista">Mediocampista</option>
                                                    <option <?php if (strcmp($rol_jug[16],"defensa")==0) echo 'selected'; ?> id="3" value="defensa">Defensa</option>
                                                    <option <?php if (strcmp($rol_jug[16],"portero")==0) echo 'selected'; ?> id="4" value="portero">Portero</option>
                                                </select>    
                                            </th>
                                            <th>
                                                <input name="tit16" value="suplente" class="form-control" style="display: none;">
                                                <input name="nro_camisa16" type="tel" value="<?php echo $shirt[16]; ?>" class="form-control" required>
                                            </th>
                                        </tr>
                                    </tbody>    
                                </table>
                                    <br>
                                    <button type="submit" class="btn btn-success"> Guardar</button>
                            </div>   
                        </form>  
                </div>          
            </div> 
               
    </body>
</html>